<template>
     <Layout class="menu-left">
        <Menu mode="horizontal" @on-select='lowerStep' :active-name="modaleshow">
            <MenuItem :name="1">基础标准管理</MenuItem>
            <MenuItem :name="2">现场标准管理</MenuItem>
        </Menu>
        <Row v-show="modaleshow==1">
            <auditTemplate ref="auditTemplate1" :templateTypeCode=1 ></auditTemplate>
        </Row>
        <Row v-show="modaleshow==2">
            <auditTemplate ref="auditTemplate2" :templateTypeCode=2></auditTemplate>
        </Row>
    </Layout>
</template>
<script>
    import auditTemplate from "./auditTemplate"

    export default {
        components: {
            auditTemplate
        },
        name: "AuditTemplatePreset",
        data(){
            return{
                form1: {
                    hazardFactor: '',
                    rikRankId: '',
                },
                modaleshow:1,
            }
        },
        mounted(){

        },
        methods:{
            lowerStep(name) {
                this.modaleshow=name
                if('1'==name) {
                    this.$refs.auditTemplate1.query()
                }else {
                    this.$refs.auditTemplate2.query()
                }
                
            },
        }
    }
</script>


<style scoped>

</style>